//
//  Auction_SpecialSaleDetailsWatchInfo_Cell_WX.m
//  ZITHER
//
//  Created by weixin on 2019/5/30.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Auction_SpecialSaleDetailsWatchInfo_Cell_WX.h"

@implementation Auction_SpecialSaleDetailsWatchInfo_Cell_WX

- (void)awakeFromNib {
    [super awakeFromNib];
    [self setUI];
}
-(void)setModel:(specialSaleSceneidDetails *)model{
    _model = model;
    if (self.type == 0) {
        self.titleLab.text = @"附件";
        self.titleSubLab.text = model.attachment;
    }else{
        self.titleLab.text = @"表况";
        self.titleSubLab.text = model.captions;

    }

}
-(void)setUI{
    
    [self.titleLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(15);
        make.right.equalTo(self).offset(-15);
        make.top.equalTo(self).offset(15);
        make.height.mas_equalTo(15);
    }];
    
    [self.titleSubLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.titleLab.mas_bottom).offset(8);
        make.left.equalTo(self).offset(15);
        make.right.equalTo(self).offset(-15);
        make.bottom.equalTo(self.mas_bottom).offset(0);
    }];
    
}


-(BaseLab *)titleLab{
    if (!_titleLab) {
        _titleLab = [BaseLab initCustomLab:@"表况" color:HexColor(0x999999) font:[UIFont fontWithName:@"PingFang-SC-Regular" size:12]];
        [self addSubview:_titleLab];
    }
    return _titleLab;
}

-(BaseLab *)titleSubLab{
    if (!_titleSubLab) {
        _titleSubLab = [BaseLab initCustomLab:@"99新，原装表带12.5节，原装钻石" color:HexColor(0x000000) font:[UIFont fontWithName:@"PingFang-SC-Regular" size:14]];
        _titleSubLab.numberOfLines = 0;
        [self addSubview:_titleSubLab];
    }
    return _titleSubLab;
}




@end
